package com.song.tools.songtest.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 雪花算法（包装了hutool中的Snowflake）的属性配置
 *
 * @author song tools
 * @since 2024-07-15
 */
@Data
@ConfigurationProperties(prefix = SnowflakeProperties.PREFIX)
public class SnowflakeProperties {

    public static final String PREFIX = "snowflake.config";

    /**
     * 机器码
     */
    private Long workerId = 1L;

    /**
     * 数据中心码
     */
    private Long dataCenterId = 1L;
}
